package edu.nxmu.supersiver.test;

import java.sql.SQLException;

import javax.sql.DataSource;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

class testDataSource {

	@SuppressWarnings("resource")
	@Test
	void test() throws SQLException {
		
		ApplicationContext act = new ClassPathXmlApplicationContext("applicationContext.xml");
		DataSource dataSource = act.getBean(DataSource.class);
		System.out.println(dataSource.getConnection());
	}

}
